package com.brp.util;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Auther: dy
 * @Date: 2022/3/16 - 03 - 16 - 10:27
 * @Description: com.dy.util
 * @version: 1.0
 */
@PropertySource(value="classpath:jdbc.properties")
@Component("dbProperties")
@Data
public class DBProperties {
    @Value(value="${driverClassName}")
    private String driverClassName;
    @Value(value="${url}")
    private String url;
    @Value(value="${user}")
    private String username;
    @Value(value="${password}")
    private String password;
}
